import { ProjectMemberModel } from '../model/member';
import ProxyInterface from '../proxy-interface';

class MemberModelProxy implements ProxyInterface<ProjectMemberModel> {
  public memberModel = new ProjectMemberModel()

  constructor (responseData) {
    let data = responseData.data || responseData
    Object.assign<ProjectMemberModel, ProjectMemberModel>(this.memberModel, data)
  }

  getModel ():ProjectMemberModel {
    return this.memberModel
  }
}

export {
  MemberModelProxy
}
